package com.asset.bill.dao.mapper;

import com.asset.bill.dao.entity.BillEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * todo 描述
 * </p>
 *
 * @author 牧之
 * @date 2024/10/12 21:37
 */
public interface IBillMapper {
    public int insert(BillEntity billEntity);

    public int deleteById(@Param("id") Long id);

    public int update(@Param("billEntity") BillEntity billEntity);

    public BillEntity getById(@Param("id") Long id);

    public BillEntity getByAccountId(@Param("accountId") Long accountId);

    List<BillEntity> getUserBillList(@Param("accountId") Long accountId, @Param("currPage") Integer currPage, @Param("pageSize") Integer pageSize);

    BillEntity getUserBillById(@Param("billId") Long billId);

    Integer getTotal(@Param("accountId") Long accountId);
}
